const express = require("express");
const { getSettingService, updateSettingService } = require("../service/settingService");
const router = express.Router();

// 获取全局设置
router.get("/", async (req, res, next) => {
    res.send(await getSettingService());
})

// 修改全局设置
router.put("/", async (req, res, next) => {
    res.send(await updateSettingService(req.body));
})

module.exports = router;